<!doctype html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <script src="/scripts/jquery.js" type="text/javascript"></script>
    <script src="/scripts/semantic.min.js" type="text/javascript"></script>
    <link rel="stylesheet" href="/themes/semantic.min.css">
    <title>主页</title>
</head>

<style>
    html body {
        height: 100%;
    }

    #main-container {
        min-height: 86.3%;
    }
</style>

<body>
<div class="ui inverted attachted top stackable menu">
    <div href="" class="item" style="margin-left: 150px;">我的博客</div>
    <div class="header active item">
        <a href="/">首页</a>
    </div>
    <a href="/message/list" class="item">留言</a>
    <div class="item">
        <div class="ui icon mini input">
            <i class="search icon"></i>
            <input type="text" name="searchtext" placeholder="查找...">
        </div>
    </div>
    <div class="right menu">
    <#if (session.user)??>
        <a class="item"><i class="user icon"></i>${(session.user.nickname)!''}</a>
        <a href="/logout" class="item">退出登录</a>
    <#else>
        <a href="/login" class="item">登录</a>
        <a href="/reg" class="item">注册</a>
    </#if>
    </div>
</div><!-- end menu -->

<div class="ui grid container" id="main-container">
    <div class="twelve wide column">
        <div class="ui segment">正文</div>
    </div>
    <div class="four wide column">
        <div class="ui segment">侧边</div>
    </div>

</div>

<div class="ui vertical inverted footer segment">
    <div class="ui center aligned text container">
        宁夏大学信息工程学院 版权所有 2017－2020
    </div>
</div>

</body>
</html>